package com.laikan.bos.service.base.impl;

import com.laikan.bos.dao.base.StandardRepository;
import com.laikan.bos.domain.base.Standard;
import com.laikan.bos.service.base.StandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by admin on 2017/11/10.
 */
@Service
@Transactional
public class StandardServiceImpl implements StandardService{

    @Autowired
    private StandardRepository standardRepository;

    @Override
    public void save(Standard standard){
        standardRepository.save(standard);
    }

    @Override
    public Page<Standard> findPageData(Pageable pageable){

        return standardRepository.findAll(pageable);
    }
}
